cmake_minimum_required(VERSION 3.0)

project(jsoncpp)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=c++11")
set(CMAKE_BUILD_TYPE Debug)

# PROJECT_SOURCE_DIR:当前工程目录下，如果没有install则创建。
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/install)

set(INALL 
    src/json 
    src/parser
)
include_directories(${INALL})

set(SRCALL 
    src/json/json.cpp
    src/parser/parser.cpp
)

add_executable(${PROJECT_NAME} main.cpp ${SRCALL})